<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
		
<%if current_user %>
	<%if @my_vote%>
			<% if @my_vote == 1 %>
				<div class="votedup"></div>
			 <%elsif @can_vote_again == 1%>
				 <%= link_to_remote '', {:before => "hideRankPanel('rankingpanelcontainer')", :url => {:action => "rankup", :controller => "proposals", :id => @proposal.id}},
									{:id => "voteup", :class=>"voteup"} %>
				 <%= image_tag "spinner.gif", :style => 'display: none;', :id => 'loadingup' %>
			<%end%>
				<%= render :partial => 'fragments/votes_and_rank', :locals => {:object => @proposal} %>
			<% if @my_vote == 3 %>
				<div class="voteddown"/>
			<% elsif @can_vote_again == 1%>
				<%= link_to_remote '', {:before => "hideRankPanel('rankingpanelcontainer')", :url => {:action => "rankdown", :controller => "proposals", :id => @proposal.id}},
									{:id => "votedown",:class=>"votedown"} %>
				<%= image_tag "spinner.gif", :style => 'display: none;', :id => 'loadingdown' %>					
			<%end%>		
	<%else%>
		<%= link_to_remote '', {:before => "hideRankPanel('rankingpanelcontainer')", :url => {:action => "rankup", :controller => "proposals", :id => @proposal.id}},
								{:id => "voteup", :class=>"voteup"} %>
	<%= image_tag "spinner.gif", :style => 'display: none;', :id => 'loadingup' %>
		<%= render :partial => 'fragments/votes_and_rank', :locals => {:object => @proposal} %>
	<%= link_to_remote '', {:before => "hideRankPanel('rankingpanelcontainer')", :url => {:action => "rankdown", :controller => "proposals", :id => @proposal.id}},
							{:id => "votedown",:class=>"votedown"} %>
	<%= image_tag "spinner.gif", :style => 'display: none;', :id => 'loadingdown' %>
	<%end %>
<%else%>
	<%= render :partial => 'fragments/votes_and_rank', :locals => {:object => @proposal} %>
<%end %>